<?php
class UnionCompetitionSetSwitchAction extends SzAbstractAction {
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $isOpen
     * @return SzResponse
     */
    public function execute($isOpen) {
        return $this->buildResponse(
            UnionCompetitionService::get()->setSwitch($isOpen)
        );
    }
}